import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/pages/Home'
import Category from '@/pages/Category'
import Cart from '@/pages/Cart'
import Mine from '@/pages/Mine'
import Login from '@/pages/Login'
import Regist from '@/pages/Regist'
import Goodslist from '@/pages/Goodslist'
import Goodsone from '@/pages/Goodsone.vue'
import Avatar from '@/pages/Avatar.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
      path: '/Category',
      name: 'Category',
      component: Category
    },
    {
      path: '/Category/goodsList',
      name: 'Goodslist',
      component: Goodslist
    },
    {
      path: '/Category/goodsList/goodsone',
      name: 'Goodsone',
      component: Goodsone
    },
    {
      path: '/Cart',
      name: 'Cart',
      component: Cart
    },
    {
      path: '/Mine',
      name: 'Mine',
      component: Mine
    },
    {
      path: '/Mine/Avatar',
      name: 'Avatar',
      component: Avatar
    },
    {
      path: '/Mine/Login',
      name: 'Login',
      component: Login
    },
    {
      path: '/Mine/Login/Regist',
      name: 'Regist',
      component: Regist
    },
  ]
})
